package com.xtcedu.dubbo;

import com.xtcedu.dubbo.api.ILoginService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Administrator
 */
public class DubboClientApplication {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:META-INF/spring/application.xml");
        ILoginService loginService = (ILoginService) applicationContext.getBean(ILoginService.class);
        System.out.println(loginService.login("admin", "admin"));
    }
}
